package com.ymatou.iapi.productmanager.service;

import java.util.HashMap;
import java.util.Map;
import org.json.JSONObject;
import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;

public class GetSpecificationsByUserCall extends YmatouAutoTestCall{
	private static String opurl ="api/AppProduct/GetSpecificationsByUser";
	
	public GetSpecificationsByUserCall() {
		super(EnvSetup.getSystemUrl("productmanager"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json");
	}
	
	public JSONObject call(int userId){
		Map<String, Object> updateMap = new HashMap<String, Object>();
		updateMap.put("UserId", userId);

		return callAndGetReturnData(updateMap);
	}
	
	
	public static void main(String[] args) {
		new GetSpecificationsByUserCall().call(3383);
	}
}
